class CreateGridEvents < ActiveRecord::Migration
  def self.up
    create_table :grid_events do |t|
      t.text :data
      t.integer :grid_id
      t.timestamps
    end

    create_table :grid_events_users, :id => false do |t|
      t.integer :grid_event_id
      t.integer :user_id
    end
  end

  def self.down
    drop_table :grid_events
    drop_table :grid_events_users
  end
end
